package mark.tom.fiter;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import mark.tom.fiter.bean.AggregateBean;
import mark.tom.fiter.constants.StatusCodeEnums;

public interface ProcessConverter {

    void convert(@Nullable Context mContext, @Nullable byte[] data, @Nullable IRequestListener<?> requestListener);

    void convert(@Nullable Context mContext, @NonNull AggregateBean aggregateBean, @Nullable IRequestListener<?> requestListener);

    void convert(@Nullable Context mContext, @Nullable String msg, @StatusCodeEnums int statusCode, @Nullable IRequestListener<?> requestListener);

    abstract class Factory {

        public abstract ProcessConverter get();
    }
}
